/**
 * 2009/12/19
 */
package com.googlecode.derby.customize;

import org.apache.commons.lang.builder.ToStringBuilder;

/**
 * @author o.tanaka
 */
public class BindData {

    private String columnName;
    private String type;
    private Integer index;
    private Object value;

    /**
     * @return columnName
     */
    public final String getColumnName() {
        return this.columnName;
    }

    /**
     * @return index
     */
    public final Integer getIndex() {
        return this.index;
    }

    /**
     * @return type
     */
    public final String getType() {
        return this.type;
    }

    /**
     * @return value
     */
    public final Object getValue() {
        return this.value;
    }

    /**
     * @param aColumnName
     *            the columnName to set
     */
    public final void setColumnName(final String aColumnName) {
        this.columnName = aColumnName;
    }

    /**
     * @param aIndex
     *            the index to set
     */
    public final void setIndex(final Integer aIndex) {
        this.index = aIndex;
    }

    /**
     * @param aType
     *            the type to set
     */
    public final void setType(final String aType) {
        this.type = aType;
    }

    /**
     * @param aValue
     *            the value to set
     */
    public final void setValue(final Object aValue) {
        this.value = aValue;
    }

    /**
     * @return ToStringBuilder.reflectionToString(this);
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
